removed a lot of javascript