Split up js a bit more
Split up js a bit more
Split up js a bit more
Fixed bugs and used defered objects for chaining requests