Modified the Rake tasks so they work outside of Rails environment

If not using rails, tries to find the Jsfile in the current directory.