Friend, as far as I know, you cannot put javascript codes if you have created your blog in wordpress.com because javascript is not allowed there, but if it's hosted in your host, then you can easily do whatever you want, there is no limit. All you need is you need javascript knowledge.