Json to js

This code file is correct in the sense that it will work - but it is still all declared in JSON format.