added general javascript