Sorted out JS set up

Set up the js modules and linking with gulp for both site and manger
sections.