added initial js infrastructure