Fix/823 - Jade script insert fix

Fixed issue #823 

Fixes inserting script in a Jade template.