Fixes #11 - portal-javascript