solved Bug 1033630

Request to review and merge solution for Bug 1033630.
lines 54 and 56 are blank lines, we don't need them . Also this is javascript, please end line 55 with a semicolon.