Added javascript libs and fixed minors