tidy up styling js