Much simpler method of checking if rails.js has already been loaded.