added support for automated javascript unit tests