added js testing capability for thin