fix field class, add new functions in gps class to find nearest nodes by latitude and longitude, and fix smarty class to include js from https requests