Effective Guide to Write Testable JavaScript