moved styles to css file and moved all javascript to separate file