javascript working, implementing links