V0.2.1 client getSlug fix to window.getSlug

Little fix for getSlug