add javascript port of tsyganenkos external field model