main public js