Cleanup code, add full js libraries