added checkboxes to front and done some JSLinting.