added erb to js file