written to use jQuery in parts