better javascript, starting to add CSS styling