minor javascript cleanup
Refactored and simplified styling conventions