Fixes udefine reference in browsers
Updated dist JS