cleaned up a bit of js

move params out of draw arc that shouldn't ever change