AIS reader for Javascript