simple, but powerful javascript wrappers