adding some javascript

some javascript codes are added in between the head tag, but still it's
not working. So, I'm waiting for your help.