NodeJS implementation of FOASS