fix idiot js blunder