before js