added layers to global variables
rearranged definitions

- globaly defined layers in global variables
added most files to header in html
added most files to header in jade file