defining javascript for add new employement record in profile page