move js from slim to single js file