pre and js