Removed styling so this can be installed from an external. Major refactoring of js.