Resource Hinting with JavaScript