this fixes #418; also remove last chrome API reference from portable code