Reworked stying and javascript