Strange whitespace breaking code on chrome