moved all JS functions in my.js to Gofreerev closure