Full threadelectrichead·It is common practice to separate server and client side code like this. The back end just outputs the result of the query into the javascript.View on HN