Minor refactoring
Moved dropdown's fixing code to the browser script

Also includes a minor refactoring.
Refactored the way zoom handlers are set
Updated docstring
Removed dead code
Incorporate actual project object in the context
Simplified naming
Separate code in order to cover different situations in the future
Also detect virtual files/dirs
Safety measures
Added missing semicolon