Test comparisons for floats should be AssertAlmostEqual, not AssertEqual - prevents false failures
Fixed incorrectly failing tests due to changes in templates
Replaced previous string prototype functions with new db_util functions for javascript files
Import util.js first in template header so it is available for rest of Javascript files
Javascript utility functions - replace broken string methods from OpenLayers update
Rename db_util javascript object to DB.util
Use DB.util for startsWith and contains instead of db_util
Merge pull request #438 from notthatbreezy/javascript/testing-fixes

Javascript and unittest fixes