Added simple javascript functions file