move style and js code into separate files