1. Missing comma at the end.
2. Please use jshint.