added  initialization to all js files.