JavaScript call Processing function