Created legacy.js

I don't know,  where to load bug fixes, so create a temporary file. Then throw the code where it is necessary, if it is of course necessary.
Changes (while no comments):
Removed code in the places specified phantom94