Scripts can be used in many places. The most important detail is whether the script runs on the client or the server.