Added Topic Add form to topic panel

Refactored JS code to use module pattern