Fix progress percentage

The progress bar was actually showing the number of elements, not the
percentage.

Signed-off-by: Mailson Menezes <mailson.menezes@openbossa.org>
Update progress on-the-fly

Signed-off-by: Mailson Menezes <mailson.menezes@openbossa.org>
Introduce DOMTree

DOMTree puts all DOM references in one place (a R.js file) so any DOM
change (such as name/id changes) will affect only one resource file.

Signed-off-by: Mailson Menezes <mailson.menezes@openbossa.org>
Use DOMTree to refer DOM elements

Signed-off-by: Mailson Menezes <mailson.menezes@openbossa.org>
Add class to load js files dynamically

Although useful we're not using the class in this project.

Signed-off-by: Mailson Menezes <mailson.menezes@openbossa.org>