JavaScript template extensible and abstract engine