javascript cleanup for IE

it doesn't like commas after the last item of a list #381
admin fix

#380
javascript cleanup

#381