Initial commit, this is the working .js file