Finished anon homepage javascript