fix javascript callback specs