modify js code to prevent none-argument submit