Code cleanup.

Use enable strict mode, use Prototypes, cleanup vars