removed jQuery dependency for extend