shimed some errors that were breaking the js