If you want to keep the javascript in sepearate js file, you want to use Static (or Predictable) for ID.
<asp:HiddenField ID="CurrentAnswer" runat="server" Value="-1"
ClientIDMode="Static" />
Separate JavaScript File
$(document).ready(function () {
alert($("#CurrentAnswer").val());
});