initial js parsing