First commit

Just pasting the JS into a new file