public javascript