Check for script before loading view