fixing js; comma at the end of a object literal might cause problems in older browsers and IE
fixes doc block