move some script into external file
replace jquery Live with On
use A tag for page editor links