Revert "Minor adjustment to js and php multiplesof code"

This reverts commit 411d1e03dc5aac868b0636e4c2061a521dc12a71.