Fixed missing semicolons and fixed require call