added javascript magic
Merge pull request #1 from kitatemus/master

added javascript magic