added js message interface