migrated to latest app engine and fixed some javascript