we use to console to view information. try this in a script tag
<script type="text/javascript">
$(document).ready(function(){
console.log('@Model.resourceType');
});
</script>
when the page is finished loading it will write the value of Model.resourceType to the console. for debugging script I would highly recommend looking into firefox firebug