fixed typo with js math lib
removed ardupilot safety check, it cannot be used anymore