[FIX] JS debug mode: Partially revert 21a15d1

In 21a15d1, JavaScript debug mode accidentally got always disabled.
Fix this bug by re-enabling debug mode on debug compiles.