massive JS reorganization and clean-up
rename philologic.js to common.js
Merge pull request #159 from clovis/master

massive JS reorganization and clean-up