Javascript and stylesheet correction