Add second working solution. Join JavaScript functions into one file
Add slow third working solution...