javascript tweaks
stop notices for class_exists call