Javascript code for all Client Apps.