Fix Dialog drag.
Update jslib api version to 0.5.0.
Use string template syntax in lib.
Simplify template regular expression.
Simplified init logic.
Merge branch 'simplify' into dev