forbid disabled scripts as json and remove js log statement