Added AMD support.

Added SAT-js library.