CSS not inline in javascript