custom js added - avoiding dupli code