Review JavaScript and static media folder

  - replace http:// with :// ;
  - review JavaScript function and naming convention;
  - move and reorganize static media folder/file.

All changes has not been tested.