added JS Conditional-Statements