Cleaned up some JS errors, also fixed bootstrap loading errors.