watch: fixed js extension for watch task

and removed some whitespaces