expose js object to page