when calling show method from an external javascript file it doesn't recognize it even when u put it in a $(function() { });