moved js to extended file. Small fix template