golang, js and angular-js issues