remove debug js file mode
remove some dead code
fix bug with wrong basis marker detection on scripts after basis.js