Changed color of the links to grey and moved javascript functions to the top
of the script