get javascript tests passing