make main JS global