rename LOOP to NORMAL
get rid of isLooping internal by just using repeatCount
fix node.js scope error
fix argument calls
add node.js exports