Refactored javascript code to use namespacing.
Removed the database file scores.db so that it won't be overwritter
Accidentally on the server.