little cleanup of code
Merge pull request #65 from le0pard/master

Little cleanup js code