setting css properties in javascript to remove default spacing