Loading ep JS earlier so styling wont affect, moved some preprocess in module to avoid theme leve logic implementation