Added in the code to build the requisite JS