switched profFile from coffee to javascript