Loners javaScript finctions