decorate jquery-function for file-protocol

for file protocol