ported to Chrome Apps version 2