initialize javascript via jQuery