move js from views to assets