Changed js to use JST