Ensure JS score fails gracefully cc @jamesgorrie