hmtl5 javascript app to compute the tide curve for a given location