adding javascript for gem