Fixed bug 938151 by removing dependancy on express instance

ref: https://bugzilla.mozilla.org/show_bug.cgi?id=938151