added js file, dynamic check for blank inputs