Refactor syntax, upload as .js file