organized code and separated js, css files