Edited copyright, moved JavaScript to head, fixed logPage