Adding pre-js init class to avoid flash