Fix erb rendering for JS