throw a few less errors in the js