fixes for the js validation