Prototype changes
A lot of changes to bring JS context near the Flash context