new up.magic api inspired by jquery