more cleanup of the AminoJS mode to make binding work again
more export bug fixes
cleanup
cleanup
cleanup