versioning of js files and fixed #646, #523

bug
Merge pull request #648 from safiyu/hashing

versioning of js files and fixed #646, #523, #639