add option to queue js files
added an option to output the js tags directly in the body of the document