Fixed the simple outline implementation for the JS module.
Refactored/cleaned, added tests and worked on the grammar for the AT module.