Removed define calls from tern.js and acorn.js javascript due to issue with 4.2d
Fixed some error in JS dependencies