added js exception docs