separated js code and css styles