Enabled browser debugging & fix some bugs