Adding JavaScript model