added js script block on no trailing whitespace