Fixing javascript error.
Optimizing image
Moving optimization routines to htaccess.