Platform independent halyard.js