Revert "Leftover JS_free..."

This reverts commit 53f48734c035127015781ddc20a795dc7409d85a.
Revert "Corrupted param passed to mysac_setup"

This reverts commit 753b91587667cc3b7dd58832e844ab24b82337cc.