Moved to js/ directory to add flexibility