finished adding all functions to global object