Got rid of spaces in Chrome extension JS