js code inline, makes translation easier

Moved javascript code from thebuggenie.js to milestonedetails.html.php. Makes translation of legend items easier.