js tweaks, added ClearForm func