Java script fix
Merge pull request #316 from DevYah/javascript_fix

Java script fix