Ticket #27 - moving styles into javascript