fixed rangy core to meet Chrome Apps environment