Javascript: dynamically adding CSS in to document