Introduced IF statement for <script client.js>
Bug fixes