Added better rotating text. Moved JS to outside file.