bug fixes

1. add context to addTemplateString call
2. timeout the onready function call by 0 (next cycle)