Javascript sailing related calculations and utilities.