core javascript initiation file