Bug fixes

Fixed messed up 404 errors, fixed gallery JS. Still some minor changes
needed to be made.