extract the css and js behaviour to separate files