Fix method name in code for build page JS