Remove some boilerplate code & move jQuery script to build script block