moved Javascript library into the core library