Remove debugger statement and re-enable optimization

Fix typo in template flag to disable regular JS.