replaced br tag with css, removed unused javascript variables. removed useless else statement, removed redundant nested fields in query building