enhancement: baseHref javascript global var
minor: style correction
enhancement: global var baseHref from cake