Making spark object accesible from browser