move js to own file, add floor