What is the purpose of the javascript? Why not link these things directly?