fix angle for js