More javascript library code

finished a few more functions and classes