add support for devjs mode and upate docs