function xxx() { } $(document).ready(function () { new xxx(); });