Additional functions file 'functions.js'

Added additional file ‘functions.js’ with helper functions and
pollyfills and deleted unused jQuery library and plugins.