BUG: Fix for AdapterJS not defined error