refactored, <70 lines

had some troule with files so I changed the file name slightly. js and
css have been separated, class added.