Main inputs working.

* Main input working.
* Fixed currentStatus declare.
* Minor js issues fixed.