added helper js