Added styles and significantly updated javascript