More prototype cleanup

Add missing javascript includes and move a few more files into bugs/
Tell browser this is utf-8