fixed for chrome; integrated jQuery; made some optimizations and refactoring
Merge pull request #2 from Monnoroch/master

fixed for chrome; integrated jQuery; made some optimizations and refactoring