added javaScripts block to main layout