fix new mail library
defer task creation in javascript, implement main test for properties