Custom set of javascript functions and wrappers