removing stand alone js functions