Load min js only if not run from file

Added script to check if the page is being run from a file. If it is it
will load the unminified JS file for the project to help with debugging,
otherwise it will load the minified version.