check the type of result generated by javascript engine