How to remove issues in jQuery
<p>I wrote a small jQuery application recently to practise the language and got some feedback which criticised it in the following:</p>

<ol>
<li>you don't use any message passing in your functions,</li>
<li>you had hard coded values for some of your data (eg: the colours),</li>
<li>you had initalisation code embedded rather than extracted out into a separate JSON file</li>
</ol>

<p>But I dont really understand what they mean, and how I remove these issues.</p>

<p>Can anyone give me rough examples of them, and the correct approach?</p>

<p>Thanks for any help!</p>
