Added JavaScript logging library, linked some files to local copies, and cleaned up many JavaScript style items