Put very simply, the problem is that javascript scripts work only if I'm viewing a website (or any page from a server). It won't work if I'm viewing a page locally.

Does anyone have any idea about this?