Fixed layout test.js import, rendering in misc.js, and jquery by id in index.jade and test.js