Added Javascript to jade template