relocated <script> and fixed css