Modify script js

Remove a couple of usless lines in the main script file