Completed Store Javascript refactoring.