add stop parameter to act like what moment does similarly
convert to a node project and add basic configuration for test using karma