Cleaning up jquery and dependency errors