<!DOCTYPE html>

<html lang="en">
    <head>
        <title>Github User display</title>
        <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
        <link href=@routes.Assets.versioned("lib/nvd3/nv.d3.css") rel="stylesheet" type="text/css">
        @helper.requireJs(core = routes.Assets.versioned("lib/requirejs/require.js").url, module = routes.Assets.versioned("javascripts/main.js").url)
        <link rel="stylesheet" href=@routes.Assets.versioned("lib/bootstrap/css/bootstrap.css") type="text/css">

    <body>
		<div class="container">

			<div class="row-fluid">
				<div class="col-md-12">
					<h1>Github user search</h1>
				</div>
			</div>

			<div class="row-fluid">
				<div class="col-md-12">
					<label>Github user: </label>
					<input type="text" id="user-selection">
					<span id="searching-span"></span>
				</div>
			</div>

			<div class="row-fluid">
				<div class="col-md-12">
					<hr />
				</div>
			</div>

			<div id="response" class="row-fluid"></div>
		</div>
    </body>
</html>

<!DOCTYPE html>

<html lang="en">
    <head>
        <title>Github User display</title>
        <link rel="stylesheet" media="screen" href="@routes.Assets.versioned("stylesheets/main.css")">
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.versioned("images/favicon.png")">
        <link href=@routes.Assets.versioned("lib/nvd3/nv.d3.css") rel="stylesheet" type="text/css">
        <script src=@routes.Assets.versioned("lib/requirejs/require.js").url data-main="/assets/javascripts/main.js"></script>
        <link rel="stylesheet" href=@routes.Assets.versioned("lib/bootstrap/css/bootstrap.css") type="text/css">

    <body>
		<div class="container">

			<div class="row-fluid">
				<div class="col-md-12">
					<h1>Github user search</h1>
				</div>
			</div>

			<div class="row-fluid">
				<div class="col-md-12">
					<label>Github user: </label>
					<input type="text" id="user-selection">
					<span id="searching-span"></span>
				</div>
			</div>

			<div class="row-fluid">
				<div class="col-md-12">
					<hr />
				</div>
			</div>

			<div id="response" class="row-fluid"></div>
		</div>
    </body>
</html>

Remove call to @requireJs to avoid problem in production.
CHAP14: Remove call to @requireJs to avoid problem in production.

The call to @helper.requireJs was causing the wrong URL to be entered for
main.js in production: the javascripts folder was replaced by javascripts-min,
which wasn't actually where main.js was.

Hard-coding the correct URL fares better, though this is hardly a great
solution. Anyway, at least the current version deploys.
