sample javascript client and .htaccess configuration for drupal