jsdeferred obvious fixes