CR for Job #20016 - Input box overlay in Javascript

Code Review for Job #20016 - Workitem available at https://www.worklist.net/20016
what's going on here? can you clean this up? fix the indenting and brace placement.