Preliminary prototype for jquery