Change JS code to correct mistake
Merge pull request #3 from thomasmalbaux/master

Correction and update related to GA