Minor JS fixes for IE compatibility

Added a missing semicolon, removed some trailing commas for IE7 compatibility