Added an early implementation of a javascript model