moved init into $().ready()