Initial commit.
Moves js into an external file.