Adding JavaScript slides