created javascript file for personal conditional