fixed problem on ajax translation. closes #47