fixed parsing js source files bug