Adding sparkcore code.
Holy js batman.