tips for core javascript